﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class Out_Cluster_1_General : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x701;
            }
        }

        public override int Length
        {
            get
            {
                return 8;
            }
        }

        [ParamDecodor(0, 8)]
        public int ID { get; set; }

        [ParamDecodor(19, 13, 0.2, -500)]
        public double DisLong { get; set; }

        [ParamDecodor(24, 10, 0.2, -102.3)]
        public double DistLat { get; set; }

        [ParamDecodor(46, 10, 0.25, -128)]
        public double VrelLong { get; set; }

        /// <summary>
        /// 0x0: moving 
        /// 0x1: stationary
        /// 0x2: oncoming
        /// 0x3: stationary
        /// candidate 
        /// 0x4: unknown 
        /// 0x5: crossing
        /// stationary 
        /// 0x6: crossing
        /// moving 
        /// 0x7: stopped
        /// </summary>
        [ParamDecodor(48, 3)]
        public int DynProp { get; set; }

        [ParamDecodor(53, 9, 0.25, -64)]
        public double VrelLat { get; set; }

        [ParamDecodor(56, 8, 0.5, -64)]
        public double RCS { get; set; }
    }
}
